//获取文章的数量
$.ajax({
    type: 'get',
    url: '/posts/count',
    success: function(response){
        console.log(response)
        $('#post').html('<strong>'+ response.postCount+'</strong>篇文章（<strong>' + response.draftCount + '</strong>篇草稿）')
    }
})

//获取分类数量
$.ajax({
    type: 'get',
    url: '/categories/count',
    success: function(response) {
        console.log(response);
        $('#category').html('<strong>'+ response.categoryCount+'</strong>个分类')
    }
})

//获取评论数量
$.ajax({
    type: 'get',
    url: '/comments/count',
    success: function(response) {
        console.log(response)
        $('#comment').html('<strong>'+ 6 +'</strong>条评论')
    }
})